package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.qf.mapper.DtsGoodsMapper;
import com.qf.pojo.DtsGoods;
import com.qf.service.DtsGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DtsGoodServiceImpl implements DtsGoodService {
    @Autowired
    DtsGoodsMapper orderMapper;

    @Override
    public int getTotal() {
        LambdaQueryWrapper<DtsGoods> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(DtsGoods::getDeleted, false);

        Integer count = orderMapper.selectCount(wrapper);
        return count;
    }
}
